<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      >
    <h:head>
        <ui:include src="/WEB-INF/frags/header.xhtml"/>
    </h:head>
    <body>
        <img src="http://www.unab.edu.co/imagenes/logoUnab" alt="LogoUnab" width="256" height="88" border="0"/>

        <h:form id="frmLogin">
            <p:growl id="growl" life="3000" />  
            <h:panelGrid columns="2" id="PanelInicioSesion">  

                <h:outputLabel for="Usuario" value="#{etq.lblUser}" />  
                <p:inputText value="#{loginBean.usuario.usrCode}"   
                             id="Usuario" required="true" label="#{etq.lblUser}" />  

                <h:outputLabel for="Contraseña" value="#{etq.lblPassword}" />  
                <p:password value="#{loginBean.usuario.usrPswd}"   
                            id="Contraseña" required="true" label="#{etq.lblPassword}" />  

            </h:panelGrid>  
            <div align="center">
                <p:commandButton id="loginButton" value="#{etq.btnLogin}" update="growl"   
                                 actionListener="#{loginBean.login}"   
                                 oncomplete="handleLoginRequest(xhr, status, args)"/>  
            </div>

        </h:form>  

        <ui:include src="/WEB-INF/frags/footer.xhtml"/>
    </body>

</html>

